/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commonInfrastructure.system.managedbean;

import commonInfrastructure.system.entity.AuditTrailEntity;
import commonInfrastructure.system.session.AuditTrailSessionBean;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author ReinforceII
 */
@ManagedBean
@ViewScoped
public class ViewAuditTrailManagedBean {

    @EJB
    AuditTrailSessionBean auditTrailSessionBean;
    
    List<AuditTrailEntity> auditTrails;
    
    /** Creates a new instance of ViewAuditTrailManagedBean */
    public ViewAuditTrailManagedBean() {
        auditTrailSessionBean = new AuditTrailSessionBean();
    }
    
    public List<AuditTrailEntity> getAllAuditTrails(){
       return auditTrailSessionBean.getAllAuditTrails();
    }
    
}
